import { EnumCompanyState } from "@/api";
import { convertEnumToOptions } from "@/utils/queryConversion";

export const enterpriseColumns: any[] = [
  {
    title: "ID",
    dataIndex: "id",
    key: "id",
    sorter: true,
  },
  {
    title: "企业名称",
    dataIndex: "fullName",
    key: "fullName",
  },
  {
    title: "成员数",
    dataIndex: "userCount",
    key: "userCount",
    align: "center",
  },
  {
    title: "简历数",
    dataIndex: "resumeCount",
    key: "resumeCount",
    align: "center",
  },
  {
    title: "企业状态",
    dataIndex: "stateName",
    key: "stateName",
    align: "center",
  },
  {
    title: "创建时间",
    dataIndex: "createTime",
    key: "createTime",
    align: "center",
  },
  {
    title: "最近登录",
    dataIndex: "lastLoginTime",
    key: "lastLoginTime",
    align: "center",
  },
  {
    title: "操作",
    dataIndex: "action",
    key: "action",
    align: "center",
  },
];

export const EnumIsAdminUser = [
  { label: "是", value: true },
  { label: "否", value: false },
];

export const EnterpriseStateOption = convertEnumToOptions(EnumCompanyState);
